package cn.kkdlk.parse.util;

/**
 * @Author ytzjj
 * @DateTime 2024/10/14 11:21
 * @Description
 */
public class StyleFormat {

    /**
     *
     * @param align 对齐方式  0 左对齐 1居中对齐 2右对齐 3默认对齐 4垂直对齐 5自适应对齐
     * @return
     */
    public static String formatAlign(int align) {
        switch (align) {
            case 0:
                return "left";
            case 1:
                return "center";
            case 2:
                return "right";
            default:
                return "center";
        }
    }
}
